use db method instead of DB constant in protected_area.rb