Create database tables and modify saving and loading of the extra tables