configuring db to testing then back to prod