fixed typo in dbinterface and finished usecase2