Removed active record and added route