added error handling methods to all database queries
second user.save method in user.controller removePost method has 2 arguments