Made a little adjustment to the sql module to support lastInsertId with insert query's