pub fn needs_migration(db: &Database) -> bool
/db/needs-migration checks if a migration is needed
TODO: return a Result instead of panicking