comply to the new DB API
0.2.11