Using Variables In Query Postgresql