Added cache clear on database update
Updated/adapted cache clear&update mechanism to adapt more concurrency