Using FP as a query language for relational data-bases