created index page and added getTask to database