fix migrations and schema