Sample code for Service API using PDO