MySQL error capturer added