add DBHelper and fix db select bug