Fix insertGetId bug and debug code leftovers

Fixed a bug where an object would be returned instead of an integer representing the id of an inserted row. Removed some leftover debug code for Postgres.

Btw, I removed the newline by mistake in the Builder. Sorry about that.