finished porting over datamartservice to use fluent sql