Added by_name query function to Company model