Added conditional statement to use database time.

USE_DATABASE_TIME: A defined var true of false.
$GLOBALS['dbh']: The database handle to use.