MySQL Optimizations

Cached database status, db:status() being called every query is not a good idea.