Changed the layout of the sqlite3 table to allow for better data retrieval on the c backend