Add a simple static db wrapper class

This makes it easier to support other database access methods like mysqli as included here.