# Functions
CopyTmpDB reads the file at the given path and copies it to a tmp directory, returning the copied file path or an err.
OpenRegularFile opens the file at path and returns an error if it is not regular, does not exist, or cannot be opened.