Added logging to sqlalchemy