Removing duplicate, out-of-bounds sqlite3 gem reference