Minor Changes

Added some comments to main.php and closed mysqli in post_retrieve.php.
Added some database backup stuff and a file for SQL changes.