comply to the new DB API
0.3.14