backup and restore back end

with few changes in schema and daos