Refactored FileDatabase to take the location in the constructor.