Runs queries, returns data.