add db_models, move db class definitions to here