sanitized lib.database; added test of make and reverse dependencies