fix databases