Fix storing to Db med.card (need refactoring)