fix missing var in use_db