fixed bug in DBfacade