Dogs beat Dragons for second NRL victory