added sql implementation of tsdb interface
added sql unique id class
tsdb write to sql