Check system time with database time