Refactoring todo list to use a mysql database instead of a txt file