Wrap db connection in function