Change time data type for database