added lastInsertId() method