Sequelized some queries.

Need to get this merged into master to bring all the other queries up-to-date before I can continue.