Group database file names together in one place

Retrieve file names using a new getter function.
Backup original database files before making changes

Backup files are only created if they don't exist yet, so that the original
files are preserved.