Primary database schema