#12 added db for console