NodeJs DBFactory