PHP file and dir based database