Use PDO for database layer