added core library for db.