indexing repair

Fixed an issue with getting single entries from the sqlite table.
satinstance view now retrieves the entire table to a list and gains a
specific instance from that list. Not very efficient.