added back functionality to the dropdown menues for querying the database