fix lastInsertId() method not found