added data migration
updated migration for sql compat