bug fix in server module request hook and mysql module connection