Db WIP.

- Rename Db::OP_ASC, Db::OP_DESC to Db::ORDER_ASC, Db::ORDER_DESC.
- Added various Db::MODE_* constants to affect the way queries are executed.
- Fetch mysql columns in grouped mode.
- Use PDO::MYSQL_ATTR_INIT_COMMAND instead of executing the query ourself.