fix fatal error (reason undefined variable `$db`) thx heiji & Marijuana

ref. http://www.xugj.org/modules/QandA/index.php?topic_id=2406
`Database::getInstance` to `XoopsDatabaseFactory::getDatabaseConnection`

`Database::getInstance` is deprecated function
pico version 1.87.8