refactor: hibernate support, switch to HSQLDB