Extract some of the HSQL-related functionality into their own methods so that we can later move them to their own class.