Updated the db model