developed dbmng_select_form function