Sequelize instead of raw SQL

![image](https://cloud.githubusercontent.com/assets/156269/4839058/3c1bc5e0-5ff8-11e4-8f32-fde1c128b8fc.png)