add selectData function to make basic select queries

Includes helper functions to get table and column names. Moved lines
to open sqlite db into their own method. Working towards #2.

selectData takes a few values to slice on, queries the sqlite db and
returns a numpy recarray. Some of these features should be split up
into separate functions, and better tests are needed.