simplify db calls
working on postgres port
working on postgres port