psql: better practices
wip