removed first mysql connect not needed at top