class db for invoke