simplify database lookup code by using the find-database method

this depends on https://github.com/crowbar/barclamp-crowbar/pull/783