comply to the new DB API