Fixed psql stuff