add debug backup/restore options to main menu

Closes #543
move old apg.db to apg_old.db (half measure~)
Merge pull request #564 from Valodim/db-backup

Db backup