In essence, law enforcement is allowed to go anywhere the public can. Even though the individual database's terms of service may say that detectives need to stay out, they aren't violating the law by going in anyway.