PHP class that handles a CSV database