Added functionality to store default values in db