for the moment we're using the database name as cache key, it is not the best solution because all the tiles for that database will be invalidated when a change is done in any table. Doing this we avoid getting wrong data when user gets tiles which come from a query with joins.