Updated SQL and update files to support PDO and both MySQL and PgSQL.
Updated define.php to also define the table prefix.
Updated Log class to support PDO.
Updated Settings class to support PDO.
Made preliminary changes to Database class to support PDO.
Started making changes to Album class to support PDO.
Updated api.php re: sanitization of input (removed mysqli dependence).