fixed sql
trying something
more tries
try
Working postgresql db