Fixed overflow bug.
Added check for graph timespan overflowing if time_t is 32 bits.
Merge pull request #369 from nhale25/master

Fixes relating to databases covering large timespans.