modify db_test to ask for input