Learn a technique called iData, or intelligent data. You can use the iData architecture to create a central repository of data within your application. By doing so, you'll more fully separate data from presentation and produce code that's cleaner and easier to maintain. There's even an open source toolkit available with sample code to help you get started.