Example of storing a collection object for reuse. Also uses a callback so the calling function knows when the database is ready