Return the insert id's from the insert query
Rename variable
Moved a validationException to appropriate spot and got rid of an if block
Use the lastInsertId method instead of select
Typo fix
small doc