modify form by db change