Move dbconfig stuff from rules script to postinst and postrm scripts