I'm working on a new plugin, but keep running into an issue of not having access to the database. I have a second file which also needs access to the database - in order for this plugin to work this file needs to be standalone. What files do I need to include to get access to the query fuctions?