making DB config via script