Fixed php short tags. Optimized Database and config files