comply to the new DB API
0.4.14