refactored db conf to replace with mysql