adapt sql queries to hsqldb
add hsqldb dependency
tests, schema changes
tests
schema update