Changed from mysql to mysqli in getConfig() method.