Cofnod E-bost: Supporting ad-hoc queries in an integrated clinical database.