Migrate remaining tmp_db() calls to pytest fixtures