[CHORE] Change the query order for external transactions
[CHORE] Rename sequelize to db
[FEATURE] Add option to specify postgres config with url in ENV.