started work on PDO version for REST api, created db-singleton and message class using pdo