added migration and mysql support