Text this: Prolog and Databases