add sql
modify record path
fix punch