Sqlite select query not returning data

Well you're going to kick yourself. Try removing the first line (the create index) and see what you get.