Making the window page update from the database