update core and database