criete mysql_connect file
modified foreach loop category