Adding mysql port to config sample, updating to mysqli for now, adding message if can't connect.
Moving db connect code to config so we can error out and not wait for ajax
Converting to PDO, moving internal stuff from config to separate file