Adds routeDirections to the database along with access code.