fixed errors mysql crud