Further progress on the database. Now reading data correctly, working on writing the data after updates.