lastrowid is optional and disabled by default