added the correct credentials for accessing the database
changed the index file to a php file
there were two semi-colons put in the wrong place removed them
added an optional parameter for the function setDB