queries and functions.