Function wrapping
Refactoring
Fixed reduce
Adding more db testing