Cleaned up and commented a lot of code. Gave the index page proper error handling. It won't load the map or anything else other than the nav and an error message if it has database errors