Rename get_file_by_filename() function in find() and remove unused get_file_by_id() function
Use new find() function