Added lastInsertId() resolves #2