definition of DB API