Security fix - trivial SQL injection vulnerabilities.

By installing package such as "zlib'; DROP TABLE packages;", an arbitary SQL query can be executed. Now, packdude uses sqlite3_mprintf() instead of snprintf(), to escape queries.