Fix "unable to open database file None None"