Ruby CLI to perform hash lookups from a database