DB calls in function/ directory