update local and database