add log and comment for dao redirect

Sql is important. So Sql should logged.