Basic support for querying ... Cleaned old shit .. Some hits to sqlite