fix mdb, was passing wrong data