adding widget configuration and updating database