Remove dependency on sqlalchemy