Revert "fix DB updating speed"

This reverts commit 6dd2293f595cd4441e38a0c3d8af05d6e80b051c.

Tested reverting on client with just one friend contact.
For many contacts case history fetching doesn't work properly (messages from different contacts are mixed together).