fix DBAPI