[Refactor Branch] Removing SpotDb dependency from install.php

and bring it up to date to the latest code changes.