Database on contracts