added db function to delete user, redirects to homepage after deletion