Added mongojs and db functions