finished database schema