Add a simple static db wrapper class to make it easier to support other database access methods
Merge pull request #26 from rlerdorf/master

Add a simple static db wrapper class, fixes #22 (no more deprecated MySQL calls if mysqli is available)