Introduce chef_db:list using the chef_object behavior

To begin this refactor, this code introduces
chef_sql:fetch_object_names2/2 as a temporary helper function. Once
we're done, we can rename this to fetch_object_names/2.