Document Tracking System -PHP