reverse engineer db.