adds database config for test and production