added beginning of models database module