Added Database methods for getting up/downstream dependencies.