Modified to use HSQL.