* made FlatDatabase create and update methods pass input data appropriately