add database and cache