updated models to include the master database