Angular JS Database Module