DBUnit looks like a useful tool to me. Seen here.