Create class db