create database class for dict