new model database and change front end