file: Use the database to save files as a failsafe
Merge pull request #594 from greezybacon/issue/failsafe-backend

file: Use the database to save files as a failsafe

Reviewed-By: Peter Rotich <peter@osticket.com>