fixed ftp database bug