Basic query daemon script thing set up