Adjusted script for new db config