Moved TableFile functionality to db module for use with modules outside of locationservice