update datasebase