database wrapper classes
Merge https://github.com/nicgarner/IBMS