add updatePost function to controller, factory, server, mongo-helpers