fixed a problem in DBInterface