Fixing migration so it works with more databases than just mysql
changes pyelasticsearch for elasticsearch. Where are we using elasticsearch?????????????