angularJS db test