Some debugging of mysql interface and end view