update base and database