Automatic unlink fixup

Automatic unlink feature didn't work so well without the unlink()...
Never really liked SQLite anyway..
Switch to MySQL PDO
Modified SQLite-specific queries
Documentation updates for MySQL