Fix privileges for database user

We only need SELECT for this lab, not ALL PRIVILEGES.
Migrate to MySQLi extension