angularjs dao service for sqlite