replaced with the original datavore js
updated database service. Test cases added