add new class for Database, Memcache and UserInfo