logging of current page to the database