Updated the save.php file to use database.

FIle contents are stored in a static filename.code and the file details
are stored in the database for quick access.