integrated a database call from select form element