database setup R0