Add missing preamble to Cache_Database class.
Add four extra query type constants to Database override class.
Add Database::CREATE to queries where applicable.
Add Database::UPDATE to queries where applicable.
Add Database::SELECT to queries where applicable.
Add Database::INSERT to queries where applicable.
Add Database::DROP to queries where applicable.
Add Database::ALTER to queries where applicable.
Add Database::TRUNCATE to queries where applicable.
Add Database::SELECT to queries in Search class.
Add Database::RENAME to queries where applicable (and add to Database override class).
Database overload class updates for K3.
- change "$_table_name" --> "$_prefixed_table_name".  This isn't strictly
required, but we were a bit close to "$_table_name" and "$_table_names_plural"
- remove __construct() overload.  These extra parameters don't appear to exist
in K3, and profiling is set by Kohana::$profiling.
- get table prefix from table_prefix() function.
Move Database query override from Gallery_Database to Gallery_Database_MySQL.