updating database model, creation and testing