Add database open and shutdown

Added the code to open and shutdown the hsqldb that will be created