update assets and database