* config/database: update queries to improve reads/writes * reflect review comments * move tx initialization * add comments and fix psql migration * fix spelling * refactor * add more descriptive comment
* config/database: update queries to improve reads/writes * reflect review comments * move tx initialization * add comments and fix psql migration * fix spelling * refactor * add more descriptive comment