Seem to have fixed the problem with inserting data into the SQLite database.