Database: remove unused function 'rows'

This was a trivial use of fold anyway.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>