From http://stackoverflow.com/questions/8694761/get-a-cursor-with-a-raw-sql-with-ormlite