Fix pack install/temp db upgrade code in MySQL setups

- Limitation in MySQL lib requires all values to be read from a select
statement (even though they're not used), else it throws errors.
- Rewrite metapack install logic for MySQL setups. Typo in connection
string was causing installs to fail.
- New logic accounts for installing metapacks from old databases
(tvshow_meta doesn't have a year column) in new databases