Refactoring

   * Rename function
   * Merge install_home and install
   * Database is an option in compaction functions
   * Sort out functions