Improved documentation, closed sql cursors in grapher and fixed flowsgrapherdaily_pool