change sqlalchemy logic
added pg