fix aligment related databases