Add backend support to database, including update support from older version. Add some docs