update clear database