Linking database index to input new page