#35768 @0.35 [REFACTOR] Database.getForeignKeys() and tested the class