Police investigate hack of guns database