conenct to DB using $http, and also $resources