connection among pages and database operations