Recently cloned environments backend database query