Add mid library to db sample