Use database and redirect