ruby program that runs querys from ntec site and saves the results to sqlite databases