added several new files, including a sql writer which will get fast data, as well as modifications to the main script.