fix migrations and tweak things to remove hard dependency on mysql
use postgres
update a few gems