modules/dialog_ng: added DB support for dialog_ng
	- thanks to a lot of work contributed by Carlos Ruiz Diaz