Added time parsing for database