Fix database caching
Merge branch 'master' of https://github.com/greenqloud/qloudsync