Using Variables In Postgresql Query Current