[IMP] Use INSERT INTO RETURNING for the creation of a record and use some tables
instead of a string for the generation of the SQL query.
[IMP] orm: Use a list of tuples instead of three collections.
[MERGE] orm: Don't call the sequence when we create a new record. Use the
returning keyword of the INSERT statement.