attempt at fixing issue #1, database migration still required
work with new schema, refactor schema updates
fix updateDatabase script, add getDatabaseVersion and updateDatabaseVersion methods, make PDO throw exception
make initDatabase also use helper function to set the version
cleanup DB layer because we throw exceptions now on DB errors, make DB schema compatible with MySQL
fix syntax errors in DB layer