Dao based on sqlalchemy.