Solved issue with attempting to cast a cursor wrapper to a sqlite cursor.