Major changes to database API.

* The database wrapper is now basically a lightweight wrapper around the
  PDO database.  Any language-level abstraction will be done elsewhere.
  I plan on using MySQL/MariaDB as my primary database, and attempting
  to write query mechanisms to handle all desired cases it outside the
  scope of this project.