Installer redirect and permission testing

- Set index to redirect automatically to installer if configuration file
isn't setup.
- created getDBPermissions method for ensuring proper permissions have
been set.