You removed the `db` argument and now the whole function has no way to access it anymore. Would be best to add back the `db` argument.