Refactored app to use SQLAlchemy and postgres

* SQLAlchemy ORM and postgres good use for app complexity and performance needs