updated sqlalchemy stuff