changed to mysql2
fixed typo causing errors
added binary encoding