allowed for the option of setting autoIndex globally when setting config options for a connection

added in the logic for ensuring indexes

fixed logic in model for ensuring indexes

added semi colons in places that didnt have them

added a test for global autoindexing

debugging

added more test cases

whitespaces