update contructs new database