Postgresql Select Into Multiple Variables Solver