Create a main function for execute all tasks
Clean the code
Manage insert error, integrity error
Use configs parameter for unitest