added compact() method.
added call to install database from a sqlite file plus attachments directory
added tests for compact and database installation
added call to compact() in the database creation function