Made the Database class more flexible so it doesn't assume HSQLDB and can be used to connect to e.g. PGSQL on Heroku.