Added abstraction for the db file, gonna use it for the caching