fixing migration query issue
adding custom fields feature to categories