added database connectivity for file location and timestamp