improve 'locatedb' command