get_db_spec should return spec

Otherwise, it just keeps overwriting the first document in the collection, because `get_db_spec` returns `None`.