Now returns the id of the last inserted row on an insert query.