Create class for database