Finish training user management functions and add training contest database tools

1. Remove repeated dtos.
2. Finish training user management functions.
3. add training contest database tools