new database with relations