Integrating the Web Application with the Persistence Layer