more PDO conversion and added files for common pre-page actions