Change storing of config type in db to string