Move Db model for operations into __db_model instead of __init__