Database library for Minestack