added an insertUser function in ConnectionUtils and improved the code of DB