Fixed serverside bug, wasn't database that raised error but that the
server never closed the files and kept too many open.