refactor Database#find