added DB lookup function for Tables Screen