created PDO bid class in REST api