add query function
add query current time function