create CJDB library and implement it on application