Bug fix on various err cases in contributers. Bug fix on ending mysql connections. Bug fix on creating duplicate user