Get saveToDb function and tests
Make save store files in the DB instead of the file system