creating resource in database and redirecting to daily view page.