fix 0 units in CSS and add hover state for admin nav
more PDO conversion and moved common code into include files