added curried format function to database utils and included partial application called formatUser in user routes