Refactored the usertask.py and its unit test
1) Add DB logic
2) Refine the task procedure

Add method "delete_record" in db_base.py
The function is to delete corresponding record(s) in the database
Add method "delete_records(table_name, where_dict)"
The method is to delete corresponding data from table