Changed the location of the database files to point to ~/.cache
directory. Created a method syncDir to return the CACHE_DIR

Signed-off-by: Sateesh Kavuri <sateesh@mobilitas.co>