Making DB theme update dynamic