Changed the way to handle the own database file

This should make it easier to update the format of the file and also prevents errors when someone keeps this file but the deletes the original calibre file