Query to squeel
Changed dev database to postgresql
 Cleaned migrations