Database Improvements

Ongoing work to replace all of TheyWorkForYou's raw queries with nice shiny PDO prepared statements.
This is me just being a bit over picky but might be nice to have the array keys in the same order they're used in the query.