fix missing postgres dao swap for api keys
code to migrate api key docs to postgres