Prevent overriding of old database files
Refactor Main class