Updated saveFieldLists function to work with new database structure (as opposed to older structure which made use of separate tables for each field)