Model class for PDO database connection