fixing the db issue that will occur on production