Implemented working backup functionality, reads db on startup