xenstore: move the database/persistence code to (module Database)

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