For functions displayed to the customer, try to make a read database. Separate storage and read. Guarantee the timely update of the data, and it is more secure to operate. Some of the MVC modes of the non-B / S program.