fixed removing elements from databas (remove now delete element from cache)