dumps the api action to db