ruby: stub out some database and collection functions.