fix migrations database