Convert to JSON db to File based database