Store database in Caches instead of Documents

- Issue luqmaan/metrorappid#15
Load stops when view loads

Issue #14
Merge pull request #16 from luqmaan/apple-fixes

Apple fixes