Adapted PDO session call to match the last code change.
Added method getRow()
Restored the createSession() method to be sure any new operation starts from a brand new PDO object.
Added return instruction for the insert() method.