comment out debug msg and fix db insert