Built the database schema