Correct loading page data from the database