I would like to know how osquery is built like is it a shell where a wrapper is built over it or is it a database that it creates and queries them. These are just my speculations but would like to what sort of mechanism is deployed for osquery to query the current state