Add file limit descriptors test and replace execute to executemany for mysql perfomance