tidy logic around updating status, and query only 'online' to display inmates on home page