corrected mysql connector script and wrote route