Server Side fixes for dayhist