added model and settings for postgres DB and sqlalchemy