Rename getGraphData to getMainGraphData

When more graphs are added this should be more specific
Ignore the testing tmp directories
Fix DB tests

Had to re-work some of the time manipulation going on.  largely due to
fixing the empty bucket issue (creating 5 minute buckets from the
beginning of time was taking a while)

See commit 24a2d845a9df24eeb8833b3ec26e4e47992d3dad
Update Dev notes