Use mysql instead of files for storage