Changed insertIntoDatabase()