Sql backup functions, resolves #14