create database classes