add reset_counter to migrations and fix first migration