Refactor DatabaseProvider.

In fact Use of distinct URIs for insertions, deletions, updates and queries is a bad practice.