Moved all data to a database