Updated functions to integrate with database changes

Added function to remove team members