Prepare database agnostic model.