update database generation