Angularjs Database module