added db connect class and php version checker