Fixed bug in default array values not storing in database