Replaced missing files, fixed MySQL connection issues