Buliding DB functionality with PDO.