Updated insertRowReturnID to work with PostGreSQL.

Change-Id: I6172d3c1f0baf87e22f05be063b4fb764d39a2e9