Implemented new methods from database in add new task