catching and logging sqliteException for migrations